load("@rules_proto//proto:defs.bzl", "proto_library")
load("//proto/prost:defs.bzl", "rust_prost_library")
load("//rust:defs.bzl", "rust_test")

package(default_visibility = ["//proto/prost/private/tests:__subpackages__"])

proto_library(
    name = "nested_messages_proto",
    srcs = [
        "nested_messages.proto",
    ],
)

rust_prost_library(
    name = "nested_messages_rs_proto",
    proto = ":nested_messages_proto",
)

rust_test(
    name = "nested_messages_test",
    srcs = ["nested_messages_test.rs"],
    edition = "2021",
    deps = [
        ":nested_messages_rs_proto",
    ],
)
